package cn.nebula.music.dao;

import java.sql.Date;
import java.sql.Time;
import java.util.List;
import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.Song;

@Repository
public interface SongDAO {
	public Set<Song> findAllSongs();

	public Set<Song> findAllSongsOfBT();

	public Song findSongById(Integer id);

	public Set<Song> findSongsByName(String name);

	public Song findSongByResourcepath(String resourcepath);

	public Set<Song> findSongsByDuration(Time duration);

	public Set<Song> findSongsByLanguage(String language);

	public Set<Song> findSongsByPublishtime(Date publishtime);

	public Set<Song> findSongsByHeat(Integer heat);

	public Song findSongByMv(Integer mvId);

	public List<Song> findNewSongs();

	public List<Song> findHotSongs();

	public List<Song> findHot4Songs();

	public Integer addSong(Song song);

	public Integer updateSong(Song song);

	public Integer deleteSongById(Integer id);
}
